<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
<head>
<META content="IE=8.0000" http-equiv="X-UA-Compatible">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>病人跟踪治疗信息管理系统</title>
<%@ include file="/WEB-INF/jsp/public/public.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/manage/user_role.js"></script>

<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}

body {
	margin: 2px;
}

.add {
	clear: both;
	display: none;
}

a {
	text-decoration: none;
	font-family: "黑体";
}
</style>
</head>
<body>
	<!-- 添加界面-->
	<div id="add_role" closed="true" class="easyui-dialog" title="添加用户"
		style="width:250px;height:200px;"
		data-options="iconCls:'icon-save',resizable:true,modal:true">
		<table>
			<input type="hidden" name="uid" id="uid"/>
			<tr style="line-height:20px;">
				<td><font size="4" face="黑体">姓名</font>
				</td>
				<td id="user_combobox">
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">用户权限</font>
				</td>
				<td>
	    			<select class="easyui-combobox" style="width:100px;height:30px;" name="power" id="tempPower">
	    				<option value="3">超级管理员</option>
	    				<option value="2">一般管理员</option>
	    				<option value="1">普通用户</option>
	    			</select>
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td  rowspan="2"><a class="easyui-linkbutton" data-options="iconCls:'icon-add'"
				onclick="_save()">操作</a></td>
			</tr>
		</table>
	</div>
	<div>
	<a id="btn" href="javascript:void(0)" onclick="showDialog()" class="easyui-linkbutton" data-options="iconCls:'icon-add'">增加</a>
		<span  style="margin-left: 100px">
		<input id="ss"></input>
		<div id="mm" style="width:120px;">
			 <div data-options="name:'all',iconCls:'icon-ok'">全部</div>
		    <div data-options="name:'ys'">医生</div>
		    <div data-options="name:'br'">病人</div>
		</div>
		</span>
	</div>
	<table id="userRole" toolbar="#datagrid_toolbar" pagination="true"
		title="用户一览表" pageSize="20" fitColumns="true" striped="true"
		closed="false">
	</table>
	<!-- 添加界面-->
	<div id="add_user" closed="true" class="easyui-dialog" title="用户操作"
		style="width:400px;height:400px;"
		data-options="iconCls:'icon-save',resizable:true,modal:true">
		<input type="hidden" id="opt" value=""/>
		<table>
			<tr style="line-height:20px;">
				<td><font size="4" face="黑体">姓名</font>
				</td>
				<td><input class="easyui-validatebox" type="text" name="name"
					size='3' style="width:200px;height:30px;" id="name" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">性别</font>
				</td>
				<td>
					<input type="radio" class="sex" id="man" name="sex" value="1" checked="checked"/>男
					<input type="radio"  class="sex" id="woman" name="sex" value="2"/>女
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">年龄</font>
				</td>
				<td><input class="easyui-validatebox" type="text" name="age"
					size='3' style="width:200px;height:30px;" id="age" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">类别</font>
				</td>
				<td>
	    			<select class="easyui-combobox" style="width:100px;height:30px;" name="zy" id="zy">
	    				<option value="ys">医生</option>
	    				<option value="br">病人</option>
	    			</select>
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">所属科室</font>
				</td>
				<td>
	    			<input id="sxks" name="sxks" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">手机号码</font>
				</td>
				<td><input class="easyui-validatebox" type="text" name="mobile"
					size='3' style="width:200px;height:30px;" id="mobile" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">邮箱</font>
				</td>
				<td><input class="easyui-validatebox" type="text" name="email"
					size='3' style="width:200px;height:30px;" id="email" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td><font size="4" face="黑体">家庭地址</font>
				</td>
				<td><input class="easyui-validatebox" type="text" name="address"
					size='3' style="width:200px;height:30px;" id="address" />
				</td>
			</tr>
			<tr style="line-height:10px;">
				<td  rowspan="2"><a class="easyui-linkbutton" data-options="iconCls:'icon-add'"
				onclick="user_save()">添加</a></td>
			</tr>
		</table>
	</div>
</body>
</html>
